package com.dynamixsoftware.printershare.mdns;

import java.io.IOException;

public class DnsRecordText
  extends DnsRecord
{
  byte[] text;
  
  public DnsRecordText(String paramString, int paramInt1, int paramInt2, int paramInt3, byte[] paramArrayOfByte)
  {
    super(paramString, paramInt1, paramInt2, paramInt3);
    this.text = paramArrayOfByte;
  }
  
  public byte[] getText()
  {
    return this.text;
  }
  
  boolean sameValue(DnsRecord var1) {
      DnsRecordText var2 = (DnsRecordText)var1;
      if(var2.text.length == this.text.length) {
         int var3 = this.text.length;

         while(true) {
            int var4 = var3 - 1;
            if(var3 <= 0) {
               return true;
            }

            if(var2.text[var4] != this.text[var4]) {
               break;
            }

            var3 = var4;
         }
      }

      return false;
   }
  
  void write(DnsPacketOut paramDnsPacketOut)
    throws IOException
  {
    paramDnsPacketOut.writeBytes(this.text, 0, this.text.length);
  }
}


/* Location:           C:\Users\Admin\Desktop\Decompiler\JAD\jd-gui-0.3.6.windows\classes_dex2jar.jar
 * Qualified Name:     com.dynamixsoftware.printershare.mdns.DnsRecordText
 * JD-Core Version:    0.7.0.1
 */